<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@page language="java" contentType="text/html;chartset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head><title>添加奖项</title></head>
<body>
<div>
<h1>添加奖项</h1>
</div>
<form action="save" method="post">
    <div>
    <label>奖项名称</label>
    <input type="text"  name="drawName" value="" placeholder="请输入奖项名称"/>
    </div>
    <div>
        <label>奖品名称</label>
        <input type="text"  name="prizeName" value="" placeholder="请输入奖品名称"/>
    </div>
    <div>
        <label>奖品数量</label>
        <input type="text"  name="prizeNum" value="" placeholder="请输入奖品数量"
               onchange="if(/\D/.test(this.value)){alert('只能输入数字');this.value='';this.focus()}"/>
    </div>
    <br/>
    <input type="submit" value="提交"/>
    <input type="button" onclick="history.go(-1)" value="返回"/>
</form>
</body>
</html>